#ifndef COMPILER_ONLINE
#include "header.cpp"
#endif

void Test1()
{
    vector<int> v1 = {1,3};
    vector<int> v2 = {2};
    double mid = Solution().findMedianSortedArrays(v1, v2);
    if (mid == 2.0000)
    {
        std::cout << "Test 1 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 1 .... Failed" << std::endl;
    }
}

void Test2()
{
    vector<int> v1 = {1,2};
    vector<int> v2 = {3,4};
    double mid = Solution().findMedianSortedArrays(v1, v2);
    if (mid == 2.50000)
    {
        std::cout << "Test 2 .... OK" << std::endl;
    }
    else
    {
        std::cout << "Test 2 .... Failed" << std::endl;
    }
}

int main()
{
    Test1();
    // std::cout << "ceshi...." <<std::endl;
    Test2();

    return 0;
}